﻿using System.Xml.Serialization;

namespace BaseUtils.AppConfig
{
    public class Field : RootBase
    {

        [XmlAttribute("controlMode")]
        public string ControlMode { get; set; }

        [XmlAttribute("station")]
        public string Station { get; set; }

        [XmlAttribute("isAutoStation")]
        public bool IsAutoStation { get; set; }

        [XmlAttribute("stationName")]
        public string StationName { get; set; }

        [XmlAttribute("supplierName")]
        public string SupplierName { get; set; }

        [XmlAttribute("refresh")]
        public int Refresh { get; set; }

        /// <summary>
        /// 是否运行多开：
        ///     true = 多开
        ///     false = 单开
        /// </summary>
        [XmlAttribute("multiOpenApp")]
        public bool MultiOpenApp { get; set; }

        /// <summary>
        /// 是否启用流程
        ///     true = 启用
        ///     false = 禁用
        /// </summary>
        [XmlAttribute("enableFlow")]
        public bool EnableFlow { get; set; }

        [XmlAttribute("windowFile")]
        public string WindowFile { get; set; }

        [XmlAttribute("enableWindowFile")]
        public bool EnableWindowFile { get; set; }

        [XmlAttribute("bufferSize")]
        public int BufferSize { get; set; }
    }
}
